<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ page import="com.appspot.applydigit.useraccount.User" %>

<%
	String uid = request.getParameter("userid");
	String pwd = request.getParameter("userpwd");
	
	User user = new User();
	user.setUserId(uid);
	user.setUserPwd(pwd);
	
	if(user.checkAuthorize(user.getUserId(),user.getUserPwd())) {
		user.setUserSession(session.getId());
		session.setAttribute("UID",user.getUserId());
		response.sendRedirect("service.jsp");
	}else {
		response.sendRedirect("index.jsp");
	}
	
%>